home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3449 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: news-feed.mci.newscorp.com!usenet
  2. From: pbe@pobox.com
  3. Newsgroups: comp.lang.c++,comp.lang.pascal.delphi.misc
  4. Subject: Re: C++ with Zapp vs. Delphi
  5. Date: 24 Jan 1996 04:40:19 GMT
  6. Organization: Phoenix Business Enterprises
  7. Message-ID: <4e4d7j$hun@klein.delphi.com>
  8. References: <4coar6$d4n@sun4.bham.ac.uk> <4coip7$69s@news1.usa.pipeline.com> <GK+N9LA3rQAxEwdx@dakal.demon.co.uk> <4e1i6h$v29@klein.delphi.com>
  9. NNTP-Posting-Host: slip162-66.bb.delphi.com
  10. X-To: pbe@pobox.com
  11. X-Mailer: SQUID
  12. X-Registration: $737961
  13.  
  14. >OK here is the Delphi equiv:
  15. >(Not complete or syntactically correct, but you'll see my point)
  16. >
  17. >Type
  18. >     TGenericList = class
  19. >          Sort;
  20. >          Compare(s1, s2); abstract;
  21. >     end;
  22. >     TStringList = class
  23. >          Compare(s1, s2); override;
  24. >     end;
  25. >     TPictureList = class
  26. >          Compare(s1, s2); override;
  27. >     end;
  28. >
  29. >procedure TGenericList;
  30. >begin
  31. >     ...
  32. >     If Compare(s1, s2).... (will call DESCENDENT, since they override)
  33. >     ...
  34. >end;
  35.  
  36.      oops, there should have been a .SORT on the end of that last procedure
  37. declaration....
  38. _
  39. We have two seasons in PA: Winter and Contsruction.
  40.  
  41. +------------------------------------------------------------+
  42. |* Chad Z. Hower  -  phoenix@pobox.com                       |
  43. |* Consultant - Phoenix Business Enterprises                 |
  44. |         pbe@pobox.com   -   http://pobox.com/~pbe          |
  45. |* Principal Analyst Programmer -                            |
  46. |         SCB Computer Technology Inc - czhower@eastman.com  |
  47. |Physically in Church Hill, TN - Logically Not Sure          |
  48. |     **** My Opinions are my own, I don't steal them ****   |
  49. +------------------------------------------------------------+
  50. >>SQUID - The ultimate database reader, and NO limits. #$737961
  51. **Special Compile: 1.033B (Beta)
  52.